#include <QApplication>
#include <QGraphicsScene>
#include <QGraphicsView>
#include "control_of_elements.h"


int main(int argc,char* argv[])
{
    QApplication a(argc, argv);


    //场景：
    QGraphicsScene* scene = new QGraphicsScene;
    scene->setSceneRect(-200,-200,400,400);

    //图元：
    control_of_elements* ele = new control_of_elements;
    ele->setPos(-100,0);

    scene->addItem(ele);

    //视图：
    QGraphicsView* view = new QGraphicsView;
    view->setScene(scene);
    view->resize(1100,800);
    view->show();



     return a.exec();
}
